package io.renren.service;

import io.renren.common.utils.PageUtils;
import io.renren.entity.TeamDto;
import io.renren.entity.TeamEntity;

import java.util.Map;

import com.baomidou.mybatisplus.service.IService;

/**
 * 推广团队表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-04-14 14:11:21
 */
public interface TeamService extends IService<TeamEntity> {

	PageUtils queryPage(Map<String, Object> params);

	/**
	 * 统计团队相关信息
	 * 
	 * @param memberId
	 * @return
	 */
	TeamDto countTeamByMemberId(Long memberId);

	/**
	 * 统计伞下会员
	 * 
	 * @param level
	 * @param memberId
	 * @return
	 */
	PageUtils countTeamByHigher(Map<String, Object> params);
}
